﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.IRepository
{
    /// <summary>
    /// Interface for CourseRepository 
    /// Author:Fiona Pan
    /// </summary>
     public interface ICourseRepository
    {
         List<CMS.Model.Course> SelectCoursesByCondition(string courseName, string courseStatus,int pageIndex,int pageSize,out int rowCount);
         List<CMS.Model.Course> SelectAllCourses(int pageIndex, int pageSize, out int rowCount);
         void DeleteCourseById(int courseId);
         void UpdateCourseStatus(CMS.Model.Course course);
         int InsertCourse(CMS.Model.Course course);
         void UpdateCourse(CMS.Model.Course course);
         List<Model.Course> SelectCourseName(int courseId);
    }
}
